home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / dvlprstc.hqx / Developer Stack 1.3r / card_9929.txt < prev    next >
Encoding:
Text File  |  1991-04-30  |  1.5 KB  |  53 lines

  1. -- card: 9929 from stack: in.3r
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 3837
  5. -- name: DeleteMenu
  6.  
  7.  
  8. -- part contents for background part 5
  9. ----- text -----
  10. DeleteMenu
  11.  
  12. -- part contents for background part 10
  13. ----- text -----
  14. 5
  15.  
  16. -- part contents for background part 6
  17. ----- text -----
  18.  
  19. DeleteMenu allows you to delete any menus you've added to HyperCard using the NewMenu* XFCN.  Failure to delete added menus could lead to severe problems in memory and crash HyperCard!
  20.  
  21. The menu reference number you provide to to DeleteMenu should be the same number that was returned by NewMenu*.
  22.  
  23. Do NOT, however, call DeleteMenu to delete menus that you've already deleted!  You need to balance the calls for each menu.  Call NewMenu* ONCE to create a menu 
  24. (usually in either openStack, openBackground or openCard), and call DeleteMenu ONCE to delete it 
  25. (in the matching closeStack, closeBackground, or closeCard).  
  26.  
  27. Repeat as neccessary.  Rinse.
  28.  
  29. For the best example of use see the sample script provided in NewMenu*.
  30.  
  31. All the credit, (even the descriptions above) go to the creator of this ingenious XFCN:
  32.  
  33. Nine to Five Software Company
  34. P.O. Box 915
  35. Greenwood, IN  46142
  36. (317) 887-2154
  37. & Michael Long
  38.  
  39. See also CheckMenu*, EnableMenu*, NewMenu*, and ChangeMenu*.
  40.  
  41.  
  42. -- part contents for background part 7
  43. ----- text -----
  44. Syntax:
  45.  
  46. DeleteMenu(<menuNumber>)
  47.  
  48.  
  49. menuNumber is the number returned by the original newMenu call.
  50.  
  51. -- part contents for background part 27
  52. ----- text -----
  53. XFCN